package metaClass;

import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.NotFoundException;
import javassist.tools.reflect.Loader;


/**
 * @author 3153319 & 3003064
 */
public class MyMetaLoader extends javassist.tools.reflect.Loader{

	
	public MyMetaLoader() throws CannotCompileException, NotFoundException {
		super();
		delegateLoadingOf("javassist.tools.reflect.Loader");
	}

	
	
	public static void main(String[] args){
		Loader l;
		try {
			l = new Loader();
			l.addTranslator(ClassPool.getDefault(), new MyMetaTranslator(l));
			l.run("test.junit.Main", args);
			
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}
}
